// video.ts - 视频去水印接口
import request from '@/js/utils/request';

// 提交视频分享链接去水印任务
export const postVideoRemoveWatermarkShare = (data: { 
   
}) => {
    return request.postJson<VideoFileData>('/video/remove-watermark/share', {
        ...data,
        timeout: 200000
    });
};

// 提交视频去水印任务
export const postVideoRemoveWatermark = (data: { 
 
}) => {
    return request.postJson<VideoFileData>('/video/remove-watermark', {
        ...data,
        timeout: 200000
    });
};

// // 获取视频去水印任务记录
// export const getVideoTaskRecord = (data: { clientId: string }) => {
//     return request.get<VideoTaskRecord>('/video/record', data);
// };

// 接口返回数据类型定义
// export interface VideoTaskRecord {
//     pageNum: number;
//     pageSize: number; 
//     totalPage: number;
//     total: number;
//     list: VideoTaskItem[];
// }

// export interface VideoTaskItem {
//     id: number;
//     uuid: string;
//     clientId: string;
//     videoUrl: string;
//     type: string;
//     note: string;
//     createTime: string;
//     status: string;
//     processedVideos: VideoFileData[];
// }

export interface VideoFileData {
    fileId: string;
    fileSize: number;
    name: string;
    fileExtension: string;
    url: string;
    createBy: number;
    parentFileId: string;
}



